package com.qqtech.qquan.user.model;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.qqtech.core.common.util.TimeUtil;

@SuppressWarnings("serial")
public class UserAuthVo extends UserAuth{
	
	/**
	 * 昵称
	 */
	private String nick;
	
	/**
	 *社区 
	 */
	private String communityName;
	
	public String getCommunityName() {
		return communityName;
	}

	public void setCommunityName(String communityName) {
		this.communityName = communityName;
	}

	public String getNick() {
		return nick;
	}

	public void setNick(String nick) {
		this.nick = nick;
	}

	public int getAge() {
		int age = 0;
		if (this.getBirthAt() != null) {
			try {
				age = TimeUtil.getAge(this.getBirthAt());
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
		return age;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this,
				ToStringStyle.MULTI_LINE_STYLE);
	}
}